package com.hl.web;


import com.hl.pojo.Psychologicalqasessions;
import com.hl.service.XinlicepingService;
import com.hl.service.XinlidayiService;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Xinli")
public class XinlidayiConyroller {

    @Autowired
    public XinlidayiService xinlidayiService;

    @RequestMapping("/dayi")
    public GeneralResult xinlidayiListAll(){

        List<Psychologicalqasessions> list = xinlidayiService.psychologicalqasessionsList();

        System.out.println(list);

        return GeneralResult.success(list);
    }

}
